<?xml version="1.0" encoding="utf-8" ?>
<Mapping xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<Entity type="ValueTypes" table="ValueTypes">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="decimal" db-type="Decimal" scale="14" precision="28" />
		<Attribute name="uint" db-type="Int64" />
		<Attribute name="byte" db-type="Byte" />
		<Attribute name="ulong" db-type="Binary" size="1024" />
		<Attribute name="string" db-type="String" size="255" />
		<Attribute name="int" db-type="Int32" />
		<Attribute name="ushort" db-type="Int32" />
		<Attribute name="bool" db-type="Boolean" scale="0" precision="1" />
		<Attribute name="double" db-type="Double" scale="5" precision="19"  />
		<Attribute name="sbyte" db-type="Int16" />
		<Attribute name="long" db-type="Int64" />
		<Attribute name="short" db-type="Int16" />
		<Attribute name="float" db-type="Single" />
		<Attribute name="char" db-type="AnsiStringFixedLength" size="1" />
		<Attribute name="object" db-type="Object" />
		<Attribute name="object2" db-type="Object" />
	</Entity>
	<Entity type="Person" table="Person">
		<Id field="PersonId">
			<Generator name="guid" />
		</Id>
		<Attribute name="Age" field="Age" db-type="Int32" />
		<Attribute name="Lastname" field="Lastname" db-type="AnsiString" size="255" />
		<Attribute name="Firstname" field="Firstname" db-type="AnsiString" size="36" />
		<Attribute name="Acceleration" field="Acceleration" db-type="Decimal" scale="14" precision="28" />
		
		<Reference name="Prout" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Partners" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Brother" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Friends" entityChild="Thing" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Thing" childField="PersonId" />
		</Reference>
		<Reference name="MyCompany" entityChild="Company" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Company" childField="CompanyId" />
		</Reference>
		<Reference name="Address" entityChild="Address" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Address" childField="AddressId" />
		</Reference>
				
		<Reference name="BestFriend" entityChild="Person">
			<Rule parentField="FK_BestFriend" childTable="Person" childField="PersonId" />
		</Reference>

    <Reference name="MyKind" entityChild="Kind" discriminator-field="Role">
      <Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
      <Rule parentField="FK_Child" childTable="Company" childField="KindId" />
    </Reference>
	</Entity>

  <Entity type="Kind" table="Kind" discriminator-field="Type" discriminator-value="Kind">
    <Id field="KindId" >
      <Generator name="guid" />
    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255"/>
    <Attribute name="Value" field="Value" db-type="Int32"/>
  </Entity>
  
	<Entity type="Employee" table="Employee">
		<Id field="PersonId">
			<Generator name="guid" />
		</Id>
		<Attribute name="Age" field="Age" db-type="Int32" />
		<Attribute name="Lastname" field="Lastname" db-type="AnsiString" size="255" />
		<Attribute name="Firstname" field="Firstname" db-type="AnsiString" size="36" />
		<Attribute name="Acceleration" field="Acceleration" db-type="Decimal" scale="14" precision="28" />
		<Attribute name="Salary" field="Salary" db-type="Double" scale="5" precision="19" />
    <Attribute name="DailyCost" field="DailyCost" db-type="Double" scale="5" precision="19" />
    
		<Reference name="Prout" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Partners" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Brother" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Friends" entityChild="Thing" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Thing" childField="PersonId" />
		</Reference>
		<Reference name="MyCompany" entityChild="Company" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Company" childField="CompanyId" />
		</Reference>
		<Reference name="Address" entityChild="Address" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Address" childField="AddressId" />
		</Reference>
    <Reference name="BestFriend" entityChild="Person">
      <Rule parentField="FK_BestFriend" childTable="Person" childField="PersonId" />
    </Reference>
    <Reference name="MyKind" entityChild="Kind" discriminator-field="Role">
      <Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
      <Rule parentField="FK_Child" childTable="Company" childField="KindId" />
    </Reference>
	</Entity>
  <Entity type="Address" table="Address">
		<Id field="AddressId">
			<Generator name="guid" />
		</Id>
		<Attribute name="City" field="City" db-type="String" size="255" />
	</Entity>
	<Entity type="Worker" table="Worker">
		<Id field="PersonId">
			<Generator name="guid" />
		</Id>
		<Attribute name="Age" field="Age" db-type="Int32" />
		<Attribute name="Lastname" field="Lastname" db-type="AnsiString" size="255" />
		<Attribute name="Firstname" field="Firstname" db-type="AnsiString" size="36" />
		<Attribute name="Acceleration" field="Acceleration" db-type="Double" scale="14" precision="28" />
		<Attribute name="Salary" field="Salary" db-type="Double" scale="5" precision="19" />
    <Attribute name="DailyCost" field="DailyCost" db-type="Double" scale="5" precision="19" />
		<Attribute name="Place" field="Place" db-type="String"/>
    
		<Reference name="Prout" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Partners" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Brother" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Friends" entityChild="Thing" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Thing" childField="PersonId" />
		</Reference>
		<Reference name="MyCompany" entityChild="Company" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Company" childField="CompanyId" />
		</Reference>
		<Reference name="Address" entityChild="Address" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Address" childField="AddressId" />
		</Reference>
    <Reference name="BestFriend" entityChild="Person">
      <Rule parentField="FK_BestFriend" childTable="Person" childField="PersonId" />
    </Reference>
    <Reference name="MyKind" entityChild="Kind" discriminator-field="Role">
      <Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
      <Rule parentField="FK_Child" childTable="Company" childField="KindId" />
    </Reference>
	</Entity>
	<Entity type="Secretary" table="Secretary">
		<Id field="PersonId">
			<Generator name="guid" />
		</Id>
		<Attribute name="Age" field="Age" db-type="Int32" />
		<Attribute name="Lastname" field="Lastname" db-type="AnsiString" size="255" />
		<Attribute name="Firstname" field="Firstname" db-type="AnsiString" size="36" />
		<Attribute name="Acceleration" field="Acceleration" db-type="Decimal" scale="14" precision="28" />
		<Attribute name="Salary" field="Salary" db-type="Double" scale="5" precision="19" />
    <Attribute name="DailyCost" field="DailyCost" db-type="Double" scale="5" precision="19" />
		<Attribute name="Bonus" field="Bonus" db-type="Int32" />
    
		<Reference name="Prout" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Partners" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Brother" entityChild="Person" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Person" childField="PersonId" />
		</Reference>
		<Reference name="Friends" entityChild="Thing" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Thing" childField="PersonId" />
		</Reference>
		<Reference name="MyCompany" entityChild="Company" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Company" childField="CompanyId" />
		</Reference>
		<Reference name="Address" entityChild="Address" discriminator-field="Role">
			<Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Address" childField="AddressId" />
		</Reference>
    <Reference name="BestFriend" entityChild="Person">
      <Rule parentField="FK_BestFriend" childTable="Person" childField="PersonId" />
    </Reference>
    <Reference name="MyKind" entityChild="Kind" discriminator-field="Role">
      <Rule parentField="PersonId" childTable="IndexTable" childField="FK_Parent" />
      <Rule parentField="FK_Child" childTable="Company" childField="KindId" />
    </Reference>
	</Entity>

  <Entity type="Kind" table="Kind" discriminator-field="Type" discriminator-value="Kind">
    <Id field="KindId" >
      <Generator name="guid" />
    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255"/>
    <Attribute name="Value" field="Value" db-type="Int32"/>
  </Entity>
  
	<Entity type="Thing" table="Thing">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="Firstname" field="Firstname" db-type="AnsiString" size="255" />
		<Attribute name="Lastname" field="Lastname" db-type="AnsiString" size="255" />
	</Entity>
	<Entity type="Manager" table="Manager">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Reference name="MyCompany" entityChild="Company">
			<Rule parentField="CompanyId" childTable="Company" childField="CompanyId" />
		</Reference>
	</Entity>
	<Entity type="Company" table="Company">
		<Id field="CompanyId">
			<Generator name="guid" />
		</Id>
		<Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
	</Entity>
	<Entity type="FlaggedCategory" table="FlaggedCategory">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="FlaggedCategory" field="FlaggedCategory" db-type="AnsiString" size="255" />
	</Entity>
	<Entity type="Category" table="Category">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="Category" field="Category" db-type="AnsiString" size="255" />
	</Entity>
	<Entity type="SerializableTypes" table="SerializableTypes">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="StringCollection" field="StringCollection" db-type="Binary" size="1024" />
	</Entity>
	<Entity type="ComplexTypes" table="ComplexTypes">
		<Id field="Id">
			<Generator name="guid" />
		</Id>
		<Attribute name="array2" field="array2" db-type="Binary" size="1024" />
		<Attribute name="array1" field="array1" db-type="Binary" size="1024" />
		<Attribute name="datetime" field="datetime" db-type="DateTime" />
		<Attribute name="timespan" field="timespan" db-type="Object" />
	</Entity>
	
	<!-- Test for "abstract" class -->
	
	<Entity type="B" table="B">
		<Id field="Id">
			<Generator name="guid">
				<!--<Property name="dbType">Int32</Property>-->
			</Generator>
		</Id>
		<Attribute name="a" field="a" db-type="AnsiString" size="255" />
		<Attribute name="b" field="b" db-type="AnsiString" size="255" />
	</Entity>
	<Entity type="C" table="C">
		<Id field="Id">
			<Generator name="guid"/>
			<!--<Generator name="native">
				<Property name="dbType">Int32</Property>
				<Property name="seed">10</Property>
				<Property name="increment">2</Property>
			</Generator>-->
		</Id>
		<Attribute name="a" field="a" db-type="AnsiString" size="255" />
		<Attribute name="c" field="c" db-type="AnsiString" size="255" />
	</Entity>
	
	<!-- Test for references inheritance -->
	
	<Entity type="Test:D" table="D">
		<Id field="did">
			<Generator name="guid" />
		</Id>
		<Attribute name="d" field="d" db-type="AnsiString" size="255" />
    <Reference name="Refs" entityChild="Test:E">
      <Rule parentField="did" childTable="E" childField="did" />
    </Reference>

    <Reference name="Refs" entityChild="Test:F">
      <Rule parentField="did" childTable="F" childField="did" />
    </Reference>

    <Reference name="Refs" entityChild="Test:G">
      <Rule parentField="did" childTable="G" childField="did" />
    </Reference>
	</Entity>
	
	<Entity type="Test:D_Sub" table="D_Sub">
		<Id field="subdid" >
			<Generator name="guid" />
		</Id>
		<Attribute name="d" field="d" db-type="AnsiString" size="255" />
		<Attribute name="dp" field="dp" db-type="AnsiString" size="255" />
		
		<Reference name="Refs" entityChild="Test:E">
			<Rule parentField="subdid" childTable="E" childField="did" />
		</Reference>
		
		<Reference name="Refs" entityChild="Test:F">
			<Rule parentField="subdid" childTable="F" childField="did" />
		</Reference>

    <Reference name="Refs" entityChild="Test:G">
      <Rule parentField="subdid" childTable="G" childField="did" />
    </Reference>
	</Entity>
	
	<Entity type="Test:E" table="E">
		<Id field="eid">
			<Generator name="guid" />
		</Id>
		<Attribute name="e" field="e" db-type="AnsiString" size="255" />
	</Entity>
  
	<Entity type="Test:F" table="F">
		<Id field="fid">
			<Generator name="guid" />
		</Id>
		<Attribute name="e" field="e" db-type="AnsiString" size="255" />
		<Attribute name="f" field="f" db-type="AnsiString" size="255" />
	</Entity>
	
	<Entity type="Test:G" table="G">
		<Id field="gid" >
			<Generator name="guid" />
		</Id>
		<Attribute name="e" field="e" db-type="AnsiString" size="255" />
		<Attribute name="f" field="f" db-type="AnsiString" size="255" />
		<Attribute name="g" field="g" db-type="AnsiString" size="255" />
	</Entity>
	
	<!-- Test for carole's bug -->
	<Entity type="Test:Contract" table="Test_Contract">
		<Id field="ContractId">
			<Generator name="guid" />
			<!--<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>-->
		</Id>
		<Attribute name="Heading" field="Heading" db-type="String" size="50" />
		<Reference name="MyCompany" entityChild="Test:Company">
			<Rule parentField="CompanyId" childTable="Test_Company" childField="CompanyId" />
		</Reference>
	</Entity>
	<Entity type="Test:Company" table="Test_Company">
		<Id field="CompanyId">
			<Generator name="guid" />
			<!--<Generator name="native">
				<Property name="dbType">Int32</Property>
			</Generator>-->
		</Id>
		<Attribute name="Name" field="Name" db-type="String" size="50" />
	</Entity>
	
	<!-- Test for linked references : pe.Load("X.YRef.ZRef") -->
	<Entity type="X" table="X">
		<Id field="XId">
			<Generator name="guid" />
		</Id>
		<Attribute name="xvalue" field="x" db-type="String" size="50" />
		
		<Reference name="YRef" entityChild="Y">
			<Rule parentField="XId" childTable="IndexTable3" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Y" childField="YId" />
		</Reference>
	</Entity>
	
	<Entity type="Y" table="Y">
		<Id field="YId">
			<Generator name="guid" />
		</Id>
		<Attribute name="yvalue" field="y" db-type="String" size="50" />
		
		<Reference name="ZRef" entityChild="Z">
			<Rule parentField="YId" childTable="IndexTable3" childField="FK_Parent" />
			<Rule parentField="FK_Child" childTable="Z" childField="ZId" />
		</Reference>
	</Entity>
	
	<Entity type="Z" table="Z">
		<Id field="ZId">
			<Generator name="guid" />
		</Id>
		<Attribute name="zvalue" field="z" db-type="String" size="50" />
	</Entity>
	
	<Entity type="U" table="U">
		<Id field="Id">
			<Generator name="guid" />
			<!--<Generator name="native" >
				<Property name="dbType">Int32</Property>
			</Generator>-->
		</Id>
		<Attribute name="u" field="u" db-type="String" size="50" />
		
		<Reference name="VRef" entityChild="V">
			<Rule parentField="Id" childTable="V" childField="Fk_Id" />
		</Reference>
	</Entity>
	
	<Entity type="V" table="V">
		<Id field="Id">
			<Generator name="guid" />
			<!--<Generator name="native" >
				<Property name="dbType">Int32</Property>
			</Generator>-->
		</Id>
		<Attribute name="v" field="v" db-type="String" size="50" />
	</Entity>

  <Entity type="Patient" table="Patient">
    <Id field="PatientId">
      <Generator name="guid" />
    </Id>
    <Attribute name="Name" field="Name" db-type="String" size="50" />
    <Reference name="Radios" entityChild="Radio">
      <Rule parentField="PatientId" childTable="Radio" childField="Fk_PatientId" />
    </Reference>
  </Entity>

  <Entity type="Radio" table="Radio">
    <Id field="RadioId">
      <Generator name="guid" />
    </Id>
    <Attribute name="Side" field="Side" db-type="AnsiString" size="255"/>
  </Entity>

  <Entity type="M" table="M">
    <Id field="MId">
      <Generator name="guid" />
    </Id>
    <Attribute name="m" field="m" db-type="String" size="50" />
    <Reference name="Refs" entityChild="N">
      <Rule parentField="MId" childTable="N" childField="FK_MId" />
    </Reference>
  </Entity>

  <Entity type="N" table="N">
    <Id field="NId">
      <Generator name="guid" />
    </Id>
    <Attribute name="n" table="M" field="n" parentField="FK_NId"  db-type="AnsiString" size="1024" />
  </Entity>

  <Entity type="ValueNamed" table="ValueNamed">
    <Id field="ValueNamedId">
      <Generator name="guid" />
    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="1024" />
    <Attribute name="IsValueType" field="IsValueType" db-type="Boolean" precision="1" scale="0"/>
    <Attribute name="ValueType" field="ValueType" db-type="AnsiString" size="1024" />
  </Entity>

  <!-- Many To One Update -->
  <Entity type="Student" table="Student">
    <Id field="StudentId">
      <Generator name="guid" />
    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Reference name="MyCourse" entityChild="Course">
      <Rule parentField="FK_CourseId" childTable="Course" childField="CourseId" />
    </Reference>
  </Entity>

  <Entity type="Course" table="Course">
    <Id field="CourseId">
      <Generator name="guid" />
    </Id>
    <Attribute name="Subject" field="Subject" db-type="AnsiString" size="255" />
    <Attribute name="NbHours" field="NbHours" db-type="Int32" />
  </Entity>


  <!-- Shape model for inheritance -->
  
  <Entity type="Shape" table="Shape">
    <Id field="ShapeId">      <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />
  </Entity>

  <Entity type="Figure" table="Figure">
    <Id field="FigureId">      <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />

    <Reference name="Shapes" entityChild="Shape">
      <Rule parentField="FigureId" childTable="Shape" childField="FK_FigureId" />
    </Reference>
    <Reference name="Shapes" entityChild="Circle">
      <Rule parentField="FigureId" childTable="Circle" childField="FK_FigureId" />
    </Reference>
    <Reference name="Shapes" entityChild="Line">
      <Rule parentField="FigureId" childTable="Line" childField="FK_FigureId" />
    </Reference>
    <Reference name="Shapes" entityChild="Square">
      <Rule parentField="FigureId" childTable="Square" childField="FK_FigureId" />
    </Reference>
    <Reference name="Shapes" entityChild="Rectangle">
      <Rule parentField="FigureId" childTable="Rectangle" childField="FK_FigureId" />
    </Reference>
    <Reference name="Shapes" entityChild="Figure">
      <Rule parentField="FigureId" childTable="Figure" childField="FK_FigureId" />
    </Reference>
  </Entity>

  <Entity type="Circle" table="Circle">
    <Id field="CircleId">      <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />
    <Attribute name="Size" field="Size" db-type="Int32" />
  </Entity>

  <Entity type="Line" table="Line">
    <Id field="LineId"> <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />
    <Attribute name="PositionEnd" field="Size" db-type="Int32" />
  </Entity>

  <Entity type="Square" table="Square">
    <Id field="SquareId">      <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />
    <Attribute name="Size" field="Size" db-type="Int32" />
  </Entity>

  <Entity type="Rectangle" table="Rectangle">
    <Id field="RectangleId">      <Generator name="guid" />    </Id>
    <Attribute name="Name" field="Name" db-type="AnsiString" size="255" />
    <Attribute name="Position" field="Pos" db-type="Int32" />
    <Attribute name="Size" field="Size" db-type="Int32" />
    <Attribute name="Height" field="Height" db-type="Int32" />
  </Entity>

  
  <!-- UniCode Characters -->
  <Entity type="StringType" table="StringType">
    <Id field="StrId">      <Generator name="guid" />    </Id>
    <Attribute name="Str" field="Str"  db-type="AnsiString" size="10" />
    <Attribute name="UnicodeStr" field="UnicodeStr" db-type="String" size="1000"/>
    <Attribute name="StrText" field="StrText" db-type="AnsiString" />
    <Attribute name="UnicodeStrText" field="UnicodeStrText" db-type="String" size="100"/>
  </Entity>
  
</Mapping>
